<template>
    <div class="box">
        <div class="box_1">
            <div class="box_1_1">
                <button type="button" @click="curPage = 'getdang1'">用户管理</button>
            </div>
            <div class="box_1_2">
                <button type="button" @click="curPage = 'getdang11'">商品管理</button>
            </div>
        </div>
        <div class="box_2">
            <component :is="curPage"></component>
        <!-- <div class="box_3"></div> -->
        </div>
    </div>
</template>

<script>
export default {
    data() {
        return {
            curPage: "getdang1"
        }
    }
}
</script>

<style lang="less" scoped>
// .box_3{
//     outline: 1px solid rgba(0, 0, 0, 0.429);
//     width: 850px;
//     height: 50px;
//     position: absolute;
//     top: 450px;
// }
.box {
    display: flex;
}

.box {
    width: 1000px;
    height: 500px;
    margin: 0 auto;
    outline: 1px solid rgba(0, 0, 0, 0.416);

    .box_1 {
        width: 150px;
        height: 500px;
        text-align: center;
        background-color: rgba(31, 111, 197, 0.696);
        outline: 1px solid rgba(0, 0, 0, 0.393);

        .box_1_1,
        .box_1_2 {
            width: 150px;
            height: 50px;
            background-color: rgba(74, 226, 155, 0.495);
            outline: 1px solid rgba(0, 0, 0, 0.521);
        }

        .box_1_2 {
            margin-top: 20px;
        }
    }

    .box_2 {
        width: 850px;
        height: 500px;
        outline: 1px solid rgba(0, 0, 0, 0.395);
    }
}

.box_1_1>button,
.box_1_2>button {
    font-size: 30px;
    margin-top: 4px;
    background-color: rgba(229, 81, 81, 0.495);
    color: white;
}
</style>